package com.huilan.hgt.controller;


import com.huilan.hgt.service.AttachmentCatalogueService;
import com.huilan.hgt.util.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 * 附件目录表 前端控制器
 * </p>
 *
 * @author ghy
 * @since 2018-11-22
 */
@Controller
@RequestMapping("/attachmentCatalogue")
public class AttachmentCatalogueController {


    @Autowired
    AttachmentCatalogueService attachmentCatalogueService;

    /**
     * 将目录保存到指定目录价
     */
    @ResponseBody
    @PostMapping("/save.do")
    public ResponseResult save (Integer catalogueId,String[] attachmentIds){
       boolean flag =  attachmentCatalogueService.save(catalogueId,attachmentIds);
       return ResponseResult.success(flag);
    }
}

